package com.work.pojo;
/**
 * @author： li
 * @date： 2021-05-28 18:44
 * @version 1.0
 */

import java.util.Objects;

/**
 * @author： Administrator
 * @date： 2021-05-28 18:44
 * @version 1.0
 */
public class email {
    private int id;
    private String title;
    private String content;
    private String cookies;
    private String time;
    @Override
    public String toString() {
        return "email{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", cookies='" + cookies + '\'' +
                ", time='" + time + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof email)) return false;
        email email = (email) o;
        return getId() == email.getId() &&
                getTitle().equals(email.getTitle()) &&
                getContent().equals(email.getContent()) &&
                getTime().equals(email.getTime()) &&
                getCookies().equals(email.getCookies());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getId(), getTitle(), getContent(), getCookies());
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCookies() {
        return cookies;
    }

    public void setCookies(String cookies) {
        this.cookies = cookies;
    }
    public String getTime(){return time; }
    public email(int id, String title, String content, String cookies,String time) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.cookies = cookies;
        this.time=time;
    }

    public email() {
    }
}
